package com.android.loveseason;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
public class LoveSeasonActivity extends  Activity implements OnClickListener{
    /** Called when the activity is first created. */
	private static final String TAG = "LoveSeason";
	
	Button NewPlayBtn = null;
	Button LoadGameBtn = null;
	public static final int iconCont = 8;
	public static final int girlheadicon[] = {R.drawable.girl1,R.drawable.girl2,R.drawable.girl3,R.drawable.girl4,
		R.drawable.girl5,R.drawable.girl6,R.drawable.girl7,R.drawable.girl8,R.drawable.girl9};
	public static final int manheadicon[] = {R.drawable.man1,R.drawable.man2,R.drawable.man3,R.drawable.man4,
		R.drawable.man5,R.drawable.man6,R.drawable.man7,R.drawable.man8};
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
  
    		super.onCreate(savedInstanceState);
    		this.setContentView(R.layout.main);
    		findId();
    		NewPlayBtn.setOnClickListener(this);
    		LoadGameBtn.setOnClickListener(this);
    }

    private void findId(){
    	NewPlayBtn = (Button)findViewById(R.id.playsetbtn_id);
    	LoadGameBtn = (Button)findViewById(R.id.peersetbtn_id);
    }
	@Override
	public void onClick(View v) {
		Intent nextIntent = new Intent();
		if(v == NewPlayBtn){
			
			Log.i(TAG,"Setting the player property");
			nextIntent.setClass(LoveSeasonActivity.this, PlayerSetting.class);
			this.startActivity(nextIntent);
		}else if(v == LoadGameBtn){
			nextIntent.setClass(LoveSeasonActivity.this, SelectPlayerActivity.class);
			this.startActivity(nextIntent);
		}
	}
}